package com.xxx.mch.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author FengHaixin
 * @description 一句话描述该文件的用途
 * @date 2020-09-21
 */
@Setter
@Getter
@ToString (callSuper = true)
@ApiModel ("部门考评分数保存")
public class KaopinRequest
{
    @ApiModelProperty ("部门Id")
    @NotNull(message = "部门id不能为空")
    private Integer deptId;

    @ApiModelProperty("总编")
    @NotNull(message = "总编得分不能为空")
    private BigDecimal zongBian;

    @ApiModelProperty("办公室")
    @NotNull(message = "办公室得分不能为空")
    private BigDecimal office;

    @ApiModelProperty("财务科")
    @NotNull(message = "财务科得分不能为空")
    private BigDecimal caiWu;

    @ApiModelProperty("行政分管")
    @NotNull(message = "行政分管得分不能为空")
    private BigDecimal fenGuan;

    @ApiModelProperty("轮值总编")
    @NotNull(message = "轮值总编得分不能为空")
    private BigDecimal lunZhi;

    @ApiModelProperty("党委主要")
    @NotNull(message = "党委主要得分不能为空")
    private BigDecimal dangWei;

    @ApiModelProperty("行政主要")
    @NotNull(message = "行政主要得分不能为空")
    private BigDecimal zhuYao;

    @ApiModelProperty ("部门锁状态。1-加锁；0-不加锁")
    private Integer lockStatus;

    public KaopinRequest getDefault(){
        this.zongBian = BigDecimal.ZERO;
        this.office = BigDecimal.ZERO;
        this.caiWu = BigDecimal.ZERO;
        this.fenGuan = BigDecimal.ZERO;
        this.lunZhi = BigDecimal.ZERO;
        this.dangWei = BigDecimal.ZERO;
        this.zhuYao = BigDecimal.ZERO;
        return this;
    }
}
